var projectModule = angular.module('projectModule',['ngRoute']); 

projectModule.controller('ProjectController', function($scope, $http, $location){
	var id = $location.absUrl().match(/\/(\d+)$/)[1];
	console.log(id);
	$http.get('/project/one/'+id).success(function(data){
		$scope.data = data;
		data.tags = JSON.parse(data.tags);
		data.teamInfo = JSON.parse(data.teamInfo);
		console.log(data);
	});
});
